:: 1.官网注册账号 https://hub.docker.com/
:: 2.创建一个镜像库lishuoboy-docker1。见图：7.2
:: 3.【登录仓库】登录到一个Docker镜像仓库。如果未指定镜像仓库地址，默认为官方仓库 Docker Hub
:: docker login [OPTIONS] [SERVER]
:: docker logout [OPTIONS] [SERVER]
docker login -u lishuoboy
:: 4.【标记本地镜像】，将其归入某一仓库。字必须跟你注册账号一样。见图：7.4
:: docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]
docker tag lishuoboy-docker1:0.0.1 lishuoboy/lishuoboy-docker1:0.0.1
:: 5.【上传镜像】将本地的镜像上传到镜像仓库,要先登陆到镜像仓库。见图：7.5
:: docker push [OPTIONS] NAME[:TAG]
docker push lishuoboy/lishuoboy-docker1:0.0.1
:: 6.部署试试(先删除本地镜像)
docker run -dp 8080:8080 --name lishuoboy-docker1 --network lishuoboy-docker lishuoboy/lishuoboy-docker1:0.0.1